package com.lzg.designdrinciples.openclose;

/**
 * @Author lizhigang Date: 2019/9/8 20:38
 * @description:
 */
public class JavaCourse implements ICourse {
    private Integer Id;

    private String name;

    private Double price;

    public JavaCourse(Integer id,String name,Double price){

        this.Id=id;

        this.name=name;

        this.price=price;

    }
    @Override
    public Integer getId() {
        return this.Id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public double getPrice() {
        return this.price;
    }
}
